package com.qqtech.qquan.user.service;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.user.model.UserWithdraw;
import com.qqtech.qquan.user.model.UserWithdrawQuery;
import com.qqtech.qquan.user.model.UserWithdrawVo;

public interface UserWithdrawService extends BaseService<UserWithdraw> {
	public int handleConfirm(Integer id);

	/**
	 * 获取用户提现申请中、提现中这2个状态的金额
	 * 
	 * @param userWithdrawVo
	 * @return
	 */
	public List<UserWithdraw> getHandleMoney(UserWithdrawVo userWithdrawVo);

	public int handleCancle(Integer id, String remark);

	/**
	 * 后台查询
	 * 
	 * @param query
	 * @param pageable
	 * @return
	 */
	public Page<UserWithdrawVo> queryPageListAdmin(UserWithdrawQuery query, Pageable pageable);

	/**
	 * 后台导出excel
	 * 
	 * @param query
	 * @param pageable
	 * @return
	 */
	List<UserWithdrawVo> queryList4Excel(UserWithdrawQuery query, Pageable pageable);

	/**
	 * 汇总金额
	 * 
	 * @param query
	 * @return
	 */
	BigDecimal querySumCash(UserWithdrawQuery query);
}